﻿@model CloudFranceTriple.Models.ForumPostSet
@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.PostDeleteTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>
      @CloudFranceTriple.WebRole.Properties.Resources.QuestionDelete
    </h1>
    <section>
        <fieldset>
            <legend>@CloudFranceTriple.WebRole.Properties.Resources.PostDeleteTitle</legend>

            <div class="display-label">
                @CloudFranceTriple.WebRole.Properties.Resources.TopicLabel
            </div>
            <div class="display-field">
                @Html.DisplayTextFor(model => model.ForumTopicSet.LabelForumTopic)
            </div>

            <div class="display-label">
                @CloudFranceTriple.WebRole.Properties.Resources.PostMessage
            </div>
            <div class="display-field">
                @Html.DisplayTextFor(model => model.PostMessage_Message)
            </div>

            <div class="display-label">
                @CloudFranceTriple.WebRole.Properties.Resources.PostAuthor
            </div>
            <div class="display-field">
                @Html.DisplayTextFor(model => model.PostMessage_Author)
            </div>

            <div class="display-label">
                @CloudFranceTriple.WebRole.Properties.Resources.PostCreationDate
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.PostMessage_CreationDate,"TemplateUserDateTime")
            </div>
        </fieldset>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            <p>
                <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonDelete" />
            </p>        
        }
        @Html.Partial("_BackToPostByTopicList")
    </section>
</div>
